package cn.easybuy.dao;

import java.sql.SQLException;
import java.util.List;

import cn.easybuy.entity.User;

public interface UserDao {
	//婵炲鍔戦弫鎾诲棘閵堝棗顏�
	public int registerUser(User userutil) throws SQLException;
	//闂佽皫鍡╁殭缂傚稄鎷�	
	public User loginUser(String user,String pwd) throws SQLException;
	//闂佹椿鏋岄崝宥夊春濞戙垹瑙︾�銉ユ绗戦梺鍛婄啲闂勫嫰寮悙鍝勭闁跨噦鎷�
	public int  loginNameNum(String loginName); 

	public List<User> selectAll();//閺屻儴顕楅幍锟芥箒閻劍鍩�
	
	public List<User> selectUser(int id);
	
	public List<User> selectUser(String name);
	
	public List<User> selectUserInfo(String name);
	
	public List<User> selectUserInfo2(String name);
	
	public int delUser(int id);//閸掔娀娅庨悽銊﹀煕
	
	public int addUser(User user);//閺傛澘顤冮悽銊﹀煕
	
	public int updateUser(User user);//娣囶喗鏁奸悽銊﹀煕
	
	public int updatePwd(int id,String password);
}
